﻿<%@ Page Language="C#" AutoEventWireup="true"%>

<%
    string sql = "";
    db.DbHelper dbx = new db.DbHelper();
    
    sql = "update[faGui] set [fgName]='{0}',[fgType]='{1}',[fgIssueBy]='{2}',[fgIssueDate]='{3}',[fgUploadBy]='{4}',[fgUploadDate]='{5}',[fgUrl]='{6}',lingNum='{7}',buNum='{8}' where [fgId]='{9}'";
    sql = string.Format(sql, Request["fgName"], Request["fgType"], Request["fgIssueBy"], Request["fgIssueDate"], null, Request["fgUploadDate"], Request["fgUrl"], Request["lingNum"], Request["buNum"], Request["fgId"]);
   
    if (dbx.RunNoQuery(sql) > 0)
    {
        Response.Write("<script>alert('修改成功！');window.parent.$('#dlgedit').dialog('close');window.parent.location.reload();</script>");
    }
    else
    {
        Response.Write(sql);
    }

%>
